Total Complexity | 1 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import React, {FunctionComponent} from "react" |
||
14 | }) => ( |
||
15 | <article |
||
16 | className={classNames("card", className, { |
||
17 | "card--has-table": hasTable, |
||
18 | })} |
||
19 | > |
||
20 | <header className={"card__header"}> |
||
21 | <h4> |
||
22 | {titleIcon !== "" && <Icon icon={titleIcon} />} {title} |
||
23 | </h4> |
||
24 | </header> |
||
25 | <div className={"card__content"}>{children}</div> |
||
26 | </article> |
||
27 | ); |
||
28 | |||
29 | Card.defaultProps = { |
||
30 | className: "", |
||
31 | hasTable: false, |
||
32 | titleIcon: "", |
||
33 | } |
||
34 | |||
35 | export default Card |
||
36 |